<?php global $user; ?>
<?php $prefix = 'menu-logged-in-'; ?>
<?php $keys = array('sitemap' => array('p_class' => 'first'), 'information' => array('p_class' => 'second'), 'shopping' => array('p_class' => 'third')); ?>
<ul class="links">
    <?php foreach ($keys as $key => $class): ?>
    <li class="<?php print $class['p_class'];?>">
        <?php  $block = module_invoke('menu', 'block_view', $prefix . $key);?>
        <h4><?php print $block['subject'];?></h4>
        <?php print render($block['content']);?>
    </li>
    <?php endforeach;?>
</ul>